<?php
error_reporting (5); 
header("Content-Type: text/html;charset=utf-8");
session_destroy();
?>
<html>
    <head>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
    </head>
    <body id="index">
        <div id="panel">
            <form id="loginFomr" name="logF" method="post">
                <input class="inputLogin first" name="ad0"  type="password" maxlength="15">
                <input class="inputLogin" name="qm0" type="password" maxlength="15">
                <input class="inputLogin" name="kg0" type="password" maxlength="15">
                <input class="inputLogin" type="submit">
            </form>
        </div>
    </body>
</html>
<?php
        if(!isset($_POST['logF'])){
            
            $dat1=$_POST['ad0'];
            $dat3=$_POST['kg0'];
            $dat2=$_POST['qm0'];
                        

            
            if(md5(md5($dat1).md5($dat2).md5($dat3))==md5('3ff3a0a82c44844916f1b4123246036a'.'438d530d4e7f9de9ab602c679cf19f53'.'cb0ea79de7e1f26ba49ba3f98869eed2')){

                session_start();
                $_SESSION['secure']="conexion_segura";
                echo "<script type=text/javascript> window.location = 'portal.php'; </script>";
            }
            
          
        }
    ?>

